package br.com.iswe.gwt.ui.client;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.TextBox;
/**
 * 
 * Componente de Hora.
 * 
 * @author Rafael Noronha de Almeida
 *
 */
public class TimeBox extends TextBox {

	public TimeBox(){
		setMaxLength(5);
		setWidth("50px");
	}
	
	public void clear() {
		//Resolver se devo setar a hora para 00:00
		setText("");
	}

	public void setName(String name) {
		super.setName(name);
		DOM.setElementProperty(this.getElement(), "id", name);
	}
	
}
